package com.ruoyi.yipaiju.mapper;

import java.util.List;
import com.ruoyi.yipaiju.domain.ForeclosedHouse;
import org.apache.ibatis.annotations.Param;

/**
 * fo_foreclosed_houseMapper接口
 * 
 * @author liuwp
 * @date 2023-03-01
 */
public interface ForeclosedHouseMapper 
{
    /**
     * 查询fo_foreclosed_house
     * 
     * @param id fo_foreclosed_house主键
     * @return fo_foreclosed_house
     */
    public ForeclosedHouse selectForeclosedHouseById(Long id);

    /**
     * 查询fo_foreclosed_house列表
     * 
     * @param foreclosedHouse fo_foreclosed_house
     * @return fo_foreclosed_house集合
     */
    public List<ForeclosedHouse> selectForeclosedHouseList(ForeclosedHouse foreclosedHouse);

    /**
     * 可以业务主键查询一条fo_foreclosed_house
     *
     * @param foreclosedHouse fo_foreclosed_house
     * @return fo_foreclosed_house集合
     */
    public ForeclosedHouse selectOneForeclosedHouse(ForeclosedHouse foreclosedHouse);

    /**
     * 新增fo_foreclosed_house
     * 
     * @param foreclosedHouse fo_foreclosed_house
     * @return 结果
     */
    public int insertForeclosedHouse(ForeclosedHouse foreclosedHouse);

    /**
     * 修改fo_foreclosed_house
     * 
     * @param foreclosedHouse fo_foreclosed_house
     * @return 结果
     */
    public int updateForeclosedHouse(ForeclosedHouse foreclosedHouse);

    /**
     * 条件修改fo_foreclosed_house
     *
     * @param foreclosedHouse fo_foreclosed_house
     * @param foreclosedHouse fo_foreclosed_house条件
     * @return 结果
     */
    public int updateForeclosedHouseCondition(@Param("foreclosedHouse") ForeclosedHouse foreclosedHouse, @Param("foreclosedHouseCondition") ForeclosedHouse foreclosedHouseCondition);

    /**
     * 删除fo_foreclosed_house
     * 
     * @param id fo_foreclosed_house主键
     * @return 结果
     */
    public int deleteForeclosedHouseById(Long id);

    /**
     * 条件删除fo_foreclosed_house
     *
     * @param foreclosedHouse fo_foreclosed_house
     * @return 结果
     */
    public int deleteForeclosedHouseByCondition(ForeclosedHouse foreclosedHouse);

    /**
     * 批量删除fo_foreclosed_house
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteForeclosedHouseByIds(Long[] ids);

    public int batchUpdateStatusEnd();
    public int batchUpdateStatusAuctioning();

    public ForeclosedHouse selectForeclosedHouseByCode(String code);
}
